class PetDog {

    public String name;
    public String color;

    public void barks() {
        System.out.println("汪汪汪~~~");
    }
    public void wag() {
        System.out.println("摇尾巴~~~");
    }
}

public class Animal {

    public static void main(String[] args) {
        PetDog dogh = new PetDog();
        dogh.name = "阿黄";
        dogh.color = "黑黄";
        dogh.barks();
        dogh.wag();

        PetDog dogs = new PetDog();
        dogs.name = "阿黄";
        dogs.color = "黑黄";
        dogs.barks();
        dogs.wag();
    }
}
